import request from '@/utils/request'

// 查询实体缓存配置列表
export function listEntity_dict_cache_config(query) {
  return request({
    url: '/ehr/entity_dict_cache_config/list',
    method: 'get',
    params: query
  })
}

// 查询实体缓存配置详细
export function getEntity_dict_cache_config(entityCode) {
  return request({
    url: '/ehr/entity_dict_cache_config/' + entityCode,
    method: 'get'
  })
}

// 新增实体缓存配置
export function addEntity_dict_cache_config(data) {
  return request({
    url: '/ehr/entity_dict_cache_config',
    method: 'post',
    data: data
  })
}

// 修改实体缓存配置
export function updateEntity_dict_cache_config(data) {
  return request({
    url: '/ehr/entity_dict_cache_config',
    method: 'put',
    data: data
  })
}

// 删除实体缓存配置
export function delEntity_dict_cache_config(entityCode) {
  return request({
    url: '/ehr/entity_dict_cache_config/' + entityCode,
    method: 'delete'
  })
}

